package com.z.admin.vo;

import java.util.ArrayList;
import java.util.List;

/** 树类*/
public class DTree {
    /** 节点ID*/
    private String id;
    /** 上级节点ID*/
    private String parentId;
    /** 节点名称*/
    private String title;
    /** 是否展开节点*/
    private Boolean spread;
    /** 是否最后一级节点*/
    private Boolean last;
    /** 是否隐藏*/
    private Boolean hide;
    /** 是否禁用*/
    private Boolean disabled;
    /** 自定义图标class*/
    private String iconClass;
    /** 表示用户自定义需要存储在树节点中的数据*/
    private Object basicData;
    /** 复选框集合*/
    private List<CheckArr> checkArr = new ArrayList<CheckArr>();
    /** 子节点集合*/
    private List<DTree> children = new ArrayList<DTree>();
    /** 链接地址*/
    private String href;
    /** 是否勾选*/
    private boolean checked = false;

    public DTree(String id, String parentId, String title) {
        this.id = id;
        this.parentId = parentId;
        this.title = title;
    }
    public DTree(String id, String parentId, String title, String href) {
        this.id = id;
        this.parentId = parentId;
        this.title = title;
        this.href = href;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Boolean getSpread() {
        return spread;
    }

    public void setSpread(Boolean spread) {
        this.spread = spread;
    }

    public Boolean getLast() {
        return last;
    }

    public void setLast(Boolean last) {
        this.last = last;
    }

    public Boolean getHide() {
        return hide;
    }

    public void setHide(Boolean hide) {
        this.hide = hide;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public String getIconClass() {
        return iconClass;
    }

    public void setIconClass(String iconClass) {
        this.iconClass = iconClass;
    }

    public Object getBasicData() {
        return basicData;
    }

    public void setBasicData(Object basicData) {
        this.basicData = basicData;
    }

    public List<CheckArr> getCheckArr() {
        return checkArr;
    }

    public void setCheckArr(List<CheckArr> checkArr) {
        this.checkArr = checkArr;
    }

    public List<DTree> getChildren() {
        return children;
    }

    public void setChildren(List<DTree> children) {
        this.children = children;
    }

    class CheckArr {
        /** 复选框标记*/
        private String type;
        /** 复选框是否选中*/
        private String checked;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getChecked() {
            return checked;
        }

        public void setChecked(String checked) {
            this.checked = checked;
        }
    }
}
